export default {
  config: [
    {
      name: '按钮样式',
      code: 'butConfig',
      children: [
        {
          code: 'butPosition',
          text: '位置',
          type: 'doubleInput',
          value: '10,10',
          min: 0,
        },
        {
          code: 'butSize',
          text: '尺寸',
          type: 'doubleInput',
          value: '120,32',
          min: 0,
        },
        {
          name: '文本设置',
          code: 'butFontCode',
          value: {
            fontSize: 12,
            fontFamily: 'siyuan',
            color: 'rgba(255, 255, 255, 0.85)',
            fontWeight: 'normal',
          },
          type: 'FontGroup',
        },
        {
          name: '背景模糊',
          code: 'bgBlur',
          value: 0,
          min: 0,
          type: 'InputNumber',
          unit: 'px',
        },
        {
          name: '边框粗细',
          code: 'butBorderSize',
          value: 1,
          min: 0,
          type: 'InputNumber',
          unit: 'px',
        },
        {
          name: '边框颜色',
          code: 'butBorderColor',
          type: 'ColorSelector',
          value: 'rgba(27,100,238,0.85)',
        },
        {
          name: '背景颜色',
          code: 'butBgColor',
          type: 'ColorSelector',
          value: 'rgba(70,72,234,0.5)',
        },
      ],
    },
    {
      name: '分析框样式',
      code: 'analyBoxConfig',
      children: [
        {
          name: '预览分析框',
          code: 'analyBoxPriview',
          value: true,
          type: 'CheckBox',
        },
        {
          code: 'analyPosition',
          text: '位置',
          type: 'doubleInput',
          value: '132,10',
          min: 0,
        },
        {
          code: 'analySize',
          text: '尺寸',
          type: 'doubleInput',
          value: '120,32',
          min: 20,
        },
        {
          name: '背景模糊',
          code: 'bgBlur',
          value: 0,
          min: 0,
          type: 'InputNumber',
          unit: 'px',
        },
        {
          name: '默认背景颜色',
          code: 'analyBgColor',
          type: 'ColorSelector',
          value: 'rgba(27,100,238,0.5)',
        },
        {
          name: '默认按钮颜色',
          code: 'analyButColor',
          type: 'ColorSelector',
          value: 'rgba(121,66,219,0.85)',
        },
        {
          name: '按钮选中颜色',
          code: 'analyButActiveColor',
          type: 'ColorSelector',
          value: 'rgba(70,72,234,0.5)',
        },
      ],
    },
    {
      name: '圈选样式',
      code: 'drawConfig',
      children: [
        {
          name: '圈选颜色',
          code: 'drawColor',
          type: 'ColorSelector',
          value: '#00FEB3',
        },
        {
          code: 'drawOpacity',
          name: '圈选透明度',
          type: 'InputNumber',
          value: 0.8,
          min: 0,
          step: 0.1,
          max: 1,
        },
        {
          code: 'drawWidth',
          name: '边框宽度(1~99)',
          type: 'InputNumber',
          value: 2,
          min: 1,
          max: 99,
          unit: 'px',
        },
        {
          name: '线条样式',
          code: 'drawLineType',
          value: 'solid',
          type: 'Select',
          enumValue: [
            {
              key: '实线',
              value: 'solid',
            },
            {
              key: '虚线',
              value: 'dashed',
            },
          ],
        },
      ],
    },
    {
      name: '分析结果列表',
      code: 'resultConfig',
      children: [
        {
          name: '编辑态预览分析结果',
          code: 'resultPriview',
          value: true,
          type: 'CheckBox',
        },
        {
          name: '交互引擎控制显隐',
          code: 'resultDisplay',
          value: true,
          type: 'CheckBox',
        },
        {
          name: '默认配置',
          code: 'defaultConfig',
          children: [
            {
              code: 'resultPosition',
              text: '位置',
              type: 'doubleInput',
              value: '10,50',
              min: 0,
            },
            {
              code: 'resultSize',
              text: '尺寸',
              type: 'doubleInput',
              value: '242,480',
              min: 0,
            },
            {
              name: '背景模糊',
              code: 'bgBlur',
              value: 0,
              min: 0,
              type: 'InputNumber',
              unit: 'px',
            },
            {
              name: '背景图片',
              code: 'bgImg',
              type: 'ImgUpdate',
            },
            {
              name: '背景颜色',
              code: 'resultBg',
              type: 'ColorSelector',
              value: 'rgba(70,72,234,0.5)',
            },
            {
              name: '标题文本设置',
              code: 'titleFontCode',
              value: {
                fontSize: 13,
                fontFamily: 'siyuan',
                color: 'rgba(255, 255, 255, 1)',
                fontWeight: 'normal',
              },
              type: 'FontGroup',
            },
            {
              name: '内容文本设置',
              code: 'contentFontCode',
              value: {
                fontSize: 12,
                fontFamily: 'siyuan',
                color: 'rgba(255, 255, 255, 0.85)',
                fontWeight: 'normal',
              },
              type: 'FontGroup',
            },
          ],
        },
        {
          name: '选中配置',
          code: 'activeConfig',
          children: [
            {
              name: '选中背景图片',
              code: 'bgImg',
              type: 'ImgUpdate',
            },
            {
              name: '行选中背景',
              code: 'rowActiveBg',
              type: 'ColorSelector',
              value: 'rgba(70,72,234,0.5)',
            },
            {
              name: '标题文本设置',
              code: 'titleFontCode',
              value: {
                fontSize: 13,
                fontFamily: 'siyuan',
                color: 'rgba(255, 255, 255, 1)',
                fontWeight: 'normal',
              },
              type: 'FontGroup',
            },
            {
              name: '内容文本设置',
              code: 'contentFontCode',
              value: {
                fontSize: 12,
                fontFamily: 'siyuan',
                color: 'rgba(255, 255, 255, 0.85)',
                fontWeight: 'normal',
              },
              type: 'FontGroup',
            },
          ],
        },
      ],
    },
  ],
  data: {
    field: [
      { name: 'id', mapper: 'id' },
      { name: 'text', mapper: 'senseName' },
      { name: 'desc', mapper: 'senseDesc' },
    ],
    type: 1,
    value: JSON.stringify([
      {
        id: 'ons_light|5001',
        senseName: '十四校西侧站点灯杆',
        senseDesc: '[1]星悦国际校区门口任性道无人打扫长期存在卫生乱差现象,十四街十字路口经常存在违规摆摊!',
      },
      {
        id: 'ons_light|5002',
        senseName: '魏都新城C区南站点灯杆',
        senseDesc: '[2]星悦国际校区门口任性道无人打扫长期存在卫生乱差现象!',
      },
      {
        id: 'ons_light|5003',
        senseName: '魏都大道源茂街交叉口东站点智能灯杆',
        senseDesc: '[3]星悦国际校区门口任性道无人打扫长期存在卫生乱差现象!',
      },
    ]),
  },
  events: {
    click: {
      description: '圈选响应事件',
      fields: {
        polygon: {
          mapper: '',
          description: '范围',
        },
        id: {
          mapper: '',
          description: '结果ID',
        },
      },
    },
  },
  height: 0,
  width: 0,
  coordinate: { y: 0, x: 0 },
  name: '时空分析工具',
  code: 'AnalyzeTools',
  version: '1.0.0',
};
